package com.xiaozhaovip.demo.intf.service;

import com.xiaozhaovip.demo.intf.entity.YueQiLaiActivityCollect;

/**
 * 活动收藏服务
 *
 * @author Cauli
 */
public interface YueQiLaiActivityCollectService {
    /**
     * 新增收藏信息
     *
     * @param yueQiLaiActivityCollect
     * @return
     */
    int insert(YueQiLaiActivityCollect yueQiLaiActivityCollect);

    /**
     * 根据用户Id和活动Id查询收藏信息
     *
     * @param userId
     * @param activityId
     * @return
     */
    YueQiLaiActivityCollect loadByUserIdAndActivityId(int userId, int activityId);

    /**
     * 更新收藏信息
     *
     * @param yueQiLaiActivityCollect
     * @return
     */
    int update(YueQiLaiActivityCollect yueQiLaiActivityCollect);

    /**
     * 根据id更新收藏状态
     *
     * @param userId
     * @param activityId
     * @param status
     * @return
     */
    int updateStatusById(int userId, int activityId, int status);
}
